package com.itheima.demo04;

public class MainClass {
    public static void main(String[] args) {
        Inter inter = new Inter(){
            @Override
            public void show1() {
                System.out.println("我好困呀，想去睡觉！");
            }

            @Override

            public void show2() {
                System.out.println("但是要上课，好好学习，天天向上");
            }
        };

        inter.show1();
        inter.show2();
    }
}

interface Inter{
    void show1();

    void show2();
}
